package com.hope.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文件名：Student
 * 创建者：hope
 * 邮箱：1602774287@qq.com
 * 微信：hope4cc
 * 创建时间：2022/10/4-16:31
 * 描述：
 */


public class Student {
    private Integer age;

    public Student(Integer age) {
        this.age = age;
    }

    public Student() {
        System.out.println("学生对象被加载了");
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void init(){
        System.out.println("对象已被初始化");
    }
    public void destroy(){
        System.out.println("对象已被销毁");
    }
}

